local TextHelper = {}

function TextHelper.getAttrBasicText(id, value)
    local attCfg = require("config.attribute").get(id)
    assert(attCfg, "can not found cfg in attribute by id=" .. id)
    local retValue = value
    if attCfg.isper == 1 then
        retValue = (value / 1000) .. "%"
    end
    return attCfg.des, retValue
end

-- 将大于100000的显示为10万
function TextHelper.convertBNTS(num)
    if num >= 100000 then
        return Lang.get("lang_num_wan", {num = num})
    else
        return num .. ""
    end
end

return TextHelper
